package cn.hsa.fqz.monitor.controller.vo;

import com.alibaba.fastjson.JSON;
import lombok.Data;
import org.apache.commons.compress.utils.Lists;

import java.io.Serializable;
import java.util.List;

/**
 * @author Administrator
 * @version 1.0
 * @date 2024-01-29 14:14
 */
@Data
public class ConditionVO implements Serializable {

    /**
     * id
     */
    private Integer id;

    /**
     * 字段名
     */
    private String field;

    /**
     * 字段中文名
     */
    private String fieldLabel;

    /**
     * 运算符
     */
    private String operator;

    /**
     * 值
     */
    private String value;

    /**
     * 连接符
     */
    private String connector;

    /*public static void main(String[] args) {
        List<ConditionVO> result = Lists.newArrayList();
        ConditionVO vo = new ConditionVO();
        vo.setField("medinslv");
        vo.setConnector("and");
        vo.setOperator(">");
        vo.setValue("34");
        result.add(vo);

        ConditionVO vo1 = new ConditionVO();
        vo1.setField("totalnum_mdtrt_id");
        vo1.setConnector("and");
        vo1.setOperator(">=");
        vo1.setValue("1234566.90");
        result.add(vo1);

        System.out.println(JSON.toJSONString(result));
    }*/
}
